package com.kandinfo.survey.common.service;

import com.kandinfo.base.common.service.Service;
import com.kandinfo.base.security.domain.User;
import com.kandinfo.survey.common.domain.UserAnswerInfo;
import com.kandinfo.survey.common.repository.UserAnswerInfoRepository;

/**
 * 用户答题Service, created on 12/7/2016
 * 
 * @author Patrick-chenzp
 */
public interface UserAnswerInfoService extends Service<UserAnswerInfo, Long, UserAnswerInfoRepository> {
    /**
     * 保存用户提交答卷信息
     * 
     * @param curUser
     * @param questionnaireId
     * @return
     */
    UserAnswerInfo saveUserAnswerInfo(User curUser, Long questionnaireId);
}
